$primary-color = rgb(64, 158, 255);
$primary-color-alpha = rgba(64, 158, 255, 0.6);
$primary-background-color = #ecf5ff;

// 覆盖element-ui样式
.el-container {
  height: 100% !important;
  justify-content: center;
}

// 覆盖element-ui样式 end

// 全局通用样式
:not(.form-edit-wrapper)::-webkit-scrollbar {
  display: none;
}

// 全局通用样式 end
.home {
  height: calc(100% - 70px);
  user-select: none;

  .form-edit-wrapper {
    display: flex !important;
    max-width: calc(40vw + 720px);
    overflow: auto;
    flex: auto;
  }
}

.center-container {
  min-width: 440px;
  max-width: 720px;
  border-left: 1px solid #e0e0e0;
  border-right: 1px solid #e0e0e0;

  .btn-bar {
    height: 45px;
    line-height: 45px;
    font-size: 18px;
    border-bottom: solid 2px #e4e7ed;
    text-align: right;
  }

  .el-main {
    padding: 0;
    position: relative;
  }
}

.components-list {
  padding: 0 0 0 8px;
  width: 100%;
  height: 100%;
  overflow: hidden;

  .el-button {
    border: none;
    font-size: 14px;
    margin: 5px 0 0 0;
  }

  .widget-cate {
    padding: 8px 12px;
    font-size: 13px;
  }

  .ghost {
    background: #fff;
    border: 1px dashed $primary-color;

    &::after {
      background: #fff;
    }
  }

  .components-title {
    padding: 8px;
    box-shadow: 3px 0 3px 0px rgba(0, 0, 0, 0.08);
    overflow-x: hidden;
    overflow-y: auto;
  }

  .components-content {
    padding: 20px;
    overflow-x: hidden;
    overflow-y: auto;

    .widget-title {
      font-size: 16px;
      margin-bottom: 15px;
      margin-top: 30px;
    }

    & li:first-child .widget-title {
      margin-top: 0;
    }
  }

  .form-edit-widget-label {
    width: 100%;
    font-size: 12px;
    line-height: 30px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #333;
    border: 1px solid #fff;
    text-align: center;
    box-shadow: 0 0 6px 2px rgba(0, 0, 0, 0.2);
    user-select: none;
    cursor: move;
    border-radius: 4px;
    margin: 20px 0;
    transition: all 0.2s;

    img {
      vertical-align: middle;
    }

    &:hover {
      color: $primary-color;
      box-shadow: 0 0 6px 3px $primary-color-alpha;
    }

    &.disdraggable {
      cursor: no-drop;
    }
  }
}

.custom-popup-fixed {
  position: fixed;
  z-index: 1222;
  width: 0;
  height: 0;

  .custom-popup {
    position: absolute;
    left: 50%;
    width: 375px;
    height: 100%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.5);
  }

  .custom-popup-body {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 330px;
    background: #fff;
    border-radius: 10px;
    max-height: 80%;
    overflow-x: hidden;
    overflow-y: scroll;
  }
}

// 动画类
.transition03 {
  transition: 0.3s;
}

.animte-streak {
  position: relative;
  overflow: hidden;

  .animte-el {
    position: absolute;
    left: 0;
    opacity: 0;
    height: 150%;
    box-shadow: 0 0 35px 10px rgb(255, 255, 255);
    transform: rotate(20deg);
  }
}

@keyframes marquee-up {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-50%);
  }
}

@keyframes marquee-left {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

@keyframes animte-breathlamp {
  0%, 50%, to {
    transform: scale(0.8);
  }

  25%, 75% {
    transform: scale(1);
  }
}

@keyframes animte-fade {
  0%, 50%, to {
    opacity: 1;
  }

  25%, 75% {
    opacity: 0.5;
  }
}

@keyframes animte-flash {
  0%, 50%, to {
    opacity: 1;
  }

  25%, 75% {
    opacity: 0;
  }
}

@keyframes animte-streak {
  0%, 30% {
    left: 0%;
    opacity: 0;
  }

  40% {
    left: 10%;
    opacity: 0.2;
  }

  60% {
    left: 50%;
    opacity: 1;
  }

  80% {
    left: 80%;
    opacity: 1;
  }

  95% {
    left: 92%;
    opacity: 0.2;
  }

  100% {
    left: 100%;
    opacity: 0;
  }
}